package com.cn.designpatterns.ex.concrete.mediator.demo1;

/**
 * @author: zhangyi
 * @date: 2019/1/10 16:56
 * @description:
 */
public class CYColleague extends Colleague {
    public CYColleague(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void send(Message message) {
        mediator.send(message,this);
    }
    public void sendAllColleague(Message message){
        System.out.println(this.getClass().getName()+"---"+message.getMessage());
    }
}
